<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_14tx5ni" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="7.2.0">
  <bpmn:collaboration id="Collaboration_17s3se9">
    <bpmn:participant id="Participant_1somigi" processRef="Process_0e9r2d4" />
  </bpmn:collaboration>
  <bpmn:process id="Process_0e9r2d4" isExecutable="false">
    <bpmn:startEvent id="StartEvent_0iay4ar">
      <bpmn:extensionElements />
      <bpmn:outgoing>Flow_159xzcz</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:scriptTask id="scriptTask" name="Script Task">
      <bpmn:incoming>Flow_159xzcz</bpmn:incoming>
      <bpmn:outgoing>Flow_0t7z2os</bpmn:outgoing>
      <bpmn:multiInstanceLoopCharacteristics isSequential="true" camunda:collection="$(this.data.records)" />
      <bpmn:script>this.token.log('testing from the inside: '+this.token.data.loopKey);
console.log('test');</bpmn:script>
    </bpmn:scriptTask>
    <bpmn:serviceTask id="serviceTask" name="Service Task" implementation="service1">
      <bpmn:incoming>Flow_0t7z2os</bpmn:incoming>
      <bpmn:outgoing>Flow_0at2lca</bpmn:outgoing>
      <bpmn:multiInstanceLoopCharacteristics camunda:collection="$(this.data.records)" />
    </bpmn:serviceTask>
    <bpmn:sendTask id="sendTask" name="Send Task">
      <bpmn:incoming>Flow_0at2lca</bpmn:incoming>
      <bpmn:outgoing>Flow_1d90han</bpmn:outgoing>
    </bpmn:sendTask>
    <bpmn:sequenceFlow id="Flow_159xzcz" sourceRef="StartEvent_0iay4ar" targetRef="scriptTask" />
    <bpmn:sequenceFlow id="Flow_0t7z2os" sourceRef="scriptTask" targetRef="serviceTask" />
    <bpmn:sequenceFlow id="Flow_0at2lca" sourceRef="serviceTask" targetRef="sendTask" />
    <bpmn:sequenceFlow id="Flow_1d90han" sourceRef="sendTask" targetRef="Event_0umbaad" />
    <bpmn:endEvent id="Event_0umbaad">
      <bpmn:incoming>Flow_1d90han</bpmn:incoming>
    </bpmn:endEvent>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_17s3se9">
      <bpmndi:BPMNShape id="Participant_1somigi_di" bpmnElement="Participant_1somigi" isHorizontal="true">
        <dc:Bounds x="134" y="19" width="600" height="250" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_1d90han_di" bpmnElement="Flow_1d90han">
        <di:waypoint x="638" y="139" />
        <di:waypoint x="672" y="139" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="604" y="114" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0at2lca_di" bpmnElement="Flow_0at2lca">
        <di:waypoint x="498" y="139" />
        <di:waypoint x="538" y="139" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="473" y="114" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0t7z2os_di" bpmnElement="Flow_0t7z2os">
        <di:waypoint x="338" y="139" />
        <di:waypoint x="398" y="139" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="323" y="114" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_159xzcz_di" bpmnElement="Flow_159xzcz">
        <di:waypoint x="206" y="139" />
        <di:waypoint x="238" y="139" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="177" y="114" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0iay4ar">
        <dc:Bounds x="170" y="121" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="143" y="157" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1amrljm_di" bpmnElement="scriptTask">
        <dc:Bounds x="238" y="99" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0e04h0j_di" bpmnElement="serviceTask">
        <dc:Bounds x="398" y="99" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1stq68c_di" bpmnElement="sendTask">
        <dc:Bounds x="538" y="99" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0umbaad_di" bpmnElement="Event_0umbaad">
        <dc:Bounds x="672" y="121" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="633" y="157" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
